package org.abc.fund.repository.strategy;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import org.abc.fund.entity.strategy.StrategyAdjustmentHistory;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StrategyAdjustmentHistoryRepository
    extends JpaRepository<StrategyAdjustmentHistory, Long> {
  List<StrategyAdjustmentHistory> findByStrategy_IdOrderByCreatedAtDescIdDesc(Long strategyId);

  List<StrategyAdjustmentHistory> findByStrategy_IdAndCreatedAt(
      Long strategyId, LocalDate createdAt);
}
